package com.dw.etl.core.api;

import com.dw.etl.common.vo.PaginationVO;
import java.util.List;
import com.dw.etl.core.bean.model.BaseDb;

import javax.sql.DataSource;

/**
 * baseDb服务类
 * Created by hozeData on 2021/05/21.
 */
public interface BaseDbService {

    List<BaseDb> findByModel(BaseDb baseDb);

    PaginationVO<BaseDb> findPageByModel(BaseDb baseDb, Integer pageNum, Integer pageSize);

    BaseDb getById(Long idDb);

    int insert(BaseDb baseDb);

    int insertSelective(BaseDb baseDb);

    int updateByIdSelective(BaseDb baseDb);

    int updateById(BaseDb baseDb);

    int deleteById(Long idDb);

}
